<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<!DOCTYPE html>
<html style="overflow-x:hidden;overflow-y:auto;"><head>
<title>邯郸微购物</title>		
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/common.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/list.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/list_css.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/home-menu-8.css" media="all">
<link rel="stylesheet" type="text/css" href="${ctxStatic }/shopping/font-awesome.css" media="all">

<script type="text/javascript">
		$(document).ready(function() {
			document.title = "邯郸微购物";
		});
		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			window.location.href="${ctxFront }/shopping/product?pageNo="+n+"&pageSize="+s+"&category=${category}&subCategory=${subCategory}";
        }
		
		function showDetail(id){
			var flag = $('#'+id).css("display");
			
			if( flag ===  'block'){
				$('#'+id).hide();
			}else{
				$('#'+id).show();
			}
		}

		
		
		$(function(){
			$("#movie").click(function(event) {
				$("#subOrder").hide();
				$("#order").removeClass("active");
				$("#hide").hide();
				if($("#subMovie").is(":visible")==false){
					$("#subMovie").show();
					$("#movie").addClass("active");
					$("#hide").show();
				}else{
					$("#subMovie").hide();
					$("#movie").removeClass("active");
					$("#hide").hide();
				};
			});
			
			$("#order").click(function(event) {
				$("#subMovie").hide();
				$("#movie").removeClass("active");
				$("#hide").hide();
				if($("#subOrder").is(":visible")==false){
					$("#subOrder").show();
					$("#order").addClass("active");
					$("#hide").show();
				}else{
					$("#subOrder").hide();
					$("#order").removeClass("active");
					$("#hide").hide();
				};
			});
		});
	</script>
</head>

<body>
<div class="body">
<div class="titlew">收货地址管理<a href="${ctxFront }/shopping/address?uid=${uid}&wechatId=${wechatId}&style=2&productId=${productId}" style="color:#FFFFFF;float: right; padding-right: 10px;">新增</a></div>
  <c:forEach items="${addresseList}" var="address">
  <section class="w-goods" >
    <a href="${ctxFront }/shopping/product/createPay?uid=${uid}&wechatId=${wechatId}&addressId=${address.id}&productId=${productId}" class="clearfix">
        <ul style="margin:0px;" >
          <li class="title" >
            <span class="item-name"    >收件人姓名：${address.name}</span>
          </li>
          <li class="title">
            <span class="item-name"   >电话号码：${address.mobile}</span>
          </li>
          <li class="title">
            <span class="item-name"   >详细地址：${fn:substring(address.detail,0,13)}</span>
          </li>
          <li class="title">
            <span class="item-name"  >邮政编码：${address.code}</span>
          </li>
        </ul>
    </a>
  </section>
  </c:forEach>
</div>
<jsp:include page="./footer.jsp"></jsp:include>
</body>
</html>
